<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>玩原神就是原批？</title>
    <style>
        body {
            perspective: 800px;
            background-image: url(https://tse3-mm.cn.bing.net/th/id/OIP-C.pZ8Fb8fzGK8bFsTWAxkh8AHaEK?w=327&h=184&c=7&r=0&o=5&dpr=1.3&pid=1.7);
            background-repeat: unset;
        }
        
        .outer {
            width: 300px;
            height: 300px;
            margin: 200px auto;
            transform-style: preserve-3d;
            animation: myanimation 8s linear infinite;
        }
        
        .outer>div:nth-child(-n+12) {
            position: absolute;
            width: 300px;
            height: 300px;
            background-repeat: no-repeat;
            background-size: 100% 100%;
            opacity: .5;
            border-radius: 12px;
            transition: all 1s;
        }
        
        .outer>div:nth-child(1),
        .outer>div:nth-child(7) {
            background-image: url(./img/1.jpg);
            transform: rotateX(90deg) translateZ(150px);
        }
        
        .outer div:nth-child(2),
        .outer>div:nth-child(8) {
            background-image: url(./img/2.jpg);
            transform: rotateY(-90deg) translateZ(150px);
        }
        
        .outer div:nth-child(3),
        .outer>div:nth-child(9) {
            background-image: url(./img/3.jpg);
            transform: rotateY(90deg) translateZ(150px);
        }
        
        .outer div:nth-child(4),
        .outer>div:nth-child(10) {
            background-image: url(./img/4.jpg);
            transform: rotateX(-90deg) translateZ(150px);
        }
        
        .outer div:nth-child(5),
        .outer>div:nth-child(11) {
            background-image: url(./img/5.jpg);
            transform: rotateY(180deg) translateZ(150px);
        }
        
        .outer div:nth-child(6),
        .outer>div:nth-child(12) {
            background-image: url(./img/6.jpg);
            transform: rotateY(0deg) translateZ(150px);
        }
        
        .inner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translateX(-50%) translateY(-50%);
            width: 100px;
            height: 100px;
            transform-style: preserve-3d;
            animation: jiushiwan 1s linear infinite;
        }
        
        .inner>div {
            position: absolute;
            width: 100px;
            height: 100px;
            background-repeat: no-repeat;
            background-size: 100% 100%;
            opacity: 1;
            border-radius: 12px;
        }
        
        .inner>div:nth-child(1) {
            background-image: url(./img/1.jpg);
            transform: rotateX(90deg) translateZ(50px);
        }
        
        .inner div:nth-child(2) {
            background-image: url(./img/2.jpg);
            transform: rotateY(-90deg) translateZ(50px);
        }
        
        .inner div:nth-child(3) {
            background-image: url(./img/3.jpg);
            transform: rotateY(90deg) translateZ(50px);
        }
        
        .inner div:nth-child(4) {
            background-image: url(./img/4.jpg);
            transform: rotateX(-90deg) translateZ(50px);
        }
        
        .inner div:nth-child(5) {
            background-image: url(./img/5.jpg);
            transform: rotateY(180deg) translateZ(50px);
        }
        
        .inner div:nth-child(6) {
            background-image: url(./img/6.jpg);
            transform: rotateY(0deg) translateZ(50px);
        }
        
        .outer:hover>div:nth-child(7) {
            transform: rotateX(450deg) translateZ(200px);
            opacity: 1;
        }
        
        .outer:hover>div:nth-child(8) {
            transform: rotateY(-450deg) translateZ(200px);
            opacity: 1;
        }
        
        .outer:hover>div:nth-child(9) {
            transform: rotateY(450deg) translateZ(200px);
            opacity: 1;
        }
        
        .outer:hover>div:nth-child(10) {
            transform: rotateX(-450deg) translateZ(200px);
            opacity: 1;
        }
        
        .outer:hover>div:nth-child(11) {
            transform: rotateY(540deg) translateZ(200px);
            opacity: 1;
        }
        
        .outer:hover>div:nth-child(12) {
            transform: rotateY(360deg) translateZ(200px);
            opacity: 1;
        }
        /* .outer:onclick {
            animation-play-state: paused;
            animation: myanimation 8s linear infinite;
        } */
        
        @keyframes jiushiwan {
            0% {
                transform: translateX(-50%) translateY(-50%) rotateX(0deg) rotateY(0deg);
            }
            100% {
                transform: translateX(-50%) translateY(-50%) rotateX(360deg) rotateY(720deg);
            }
        }
        
        @keyframes myanimation {
            0% {
                transform: rotateX(0deg) rotateY(0deg);
            }
            100% {
                transform: rotateX(360deg) rotateY(720deg);
            }
        }
        
        @keyframes zhugeling {
            0% {
                transform: rotateX(0deg) rotateY(0deg);
            }
            100% {
                transform: rotateX(55deg) rotateY(88880deg);
            }
        }
    </style>
</head>

<body>
    <div class="outer">
        <div class="box1"></div>
        <div class="box2"></div>
        <div class="box3"></div>
        <div class="box4"></div>
        <div class="box5"></div>
        <div class="box6"></div>
        <div class="box7"></div>
        <div class="box8"></div>
        <div class="box9"></div>
        <div class="box10"></div>
        <div class="box11"></div>
        <div class="box12"></div>
        <div class="inner">
            <div class="box1"></div>
            <div class="box2"></div>
            <div class="box3"></div>
            <div class="box4"></div>
            <div class="box5"></div>
            <div class="box6"></div>
        </div>



    </div>
</body>

</html>